package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @author Alfred
 * @description 吐槽数据访问层
 * @date 2021/4/26 11:16
 */
public interface SpitDao extends MongoRepository<Spit,String> {

    /**
     * fetch data by rule id
     *
     * @description  根据上级ID查询吐槽列表
     * @param
     * @return
     */
    public Page<Spit> findByParentid(String parentid, Pageable pageable);
}
